package com.learn.framework.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能：控制层 Demo
 *
 * @author wsh
 * @date 2020/9/16
 */
@RestController
public class DemoController {
    @RequestMapping("/{name}")
    public String greeting(@PathVariable("name") String name) {
        return "hello, " + name;
    }
}
